#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   trustrank.py    
@Contact :   raogx.vip@hotmail.com
@License :   (C)Copyright 2017-2018, Liugroup-NLPR-CASIA

@Modify Time      @Author    @Version    @Desciption
------------      -------    --------    -----------
2022/10/7 17:23   gxrao      1.0         None
'''

# import lib
import unittest
# 1.导入必要的库
import numpy as np
import random
import math
import operator
from collections import defaultdict

# class TrustRank():
#     def get_dict_of_edges(self, nodes_file, edges_file):
#         list_of_edges = []
#         nodes = defaultdict(list)  # 当key不存在时，返回的是工厂函数的默认值，list对应[ ]
#
#         # 读取节点
#         with open(nodes_file, 'r') as file:
#             list_of_nodes = file.readlines()
#         for line in list_of_nodes:
#             line = line.split(',')
#             nodes[line[5]].append(line)
#         # 读取关系
#         with open(edges_file, 'r') as file:
#             list_of_edges = file.readlines()
#         for line in list_of_edges:
#             line = line.split(',')  # src源点(source),dst目的地(destination)
#             src = line[0:2]
#             dst = line[2:]
#             nodes[line[5]].append(node)
#         return edges

class test(unittest.TestCase):
    def test(self):
        print()

        print('test over')


# 注意如果用windows运行程序的话，要加if __name__ == '__main__':才能正常运行
if __name__ == '__main__':
    unittest.main()
    print('over')
